import request from "@/utils/request"

/**
 * 获取信息
 */
export function getById(id:string) {
  return request.get(`/channel/get-by-id/${id}`)
}


/**
 * 获取信息
 */
export function webLogIn(data) {
  const MobileDetect = require('mobile-detect')
  const md = new MobileDetect(navigator.userAgent)
  return request.post(`/channel/web-log-in`, {...data, phoneMode: md.mobile() })
}
